package cn.tedu.oop;

public class TestMethodPrivate {
    public static void main(String[] args) {
        Dog d=new Dog();
        d.eat();
        //d.play();
    }
}
class Dog{
    public void eat(){
        System.out.println("小狗爱吃肉骨头");
        play();
    }
    private void play(){
        System.out.println("小狗爱好捉耗子");

    }
}